<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Access-Control-Allow-Origin" content="*">
<meta property="wb:webmaster" content="2edcaf20d165cca2" />
<title>发送微博</title>
<script src="../../../../js/jquery-1.3.1.js" type="text/javascript"></script>
<script src="../../../../js/cookie.js" type="text/javascript"></script>
<script type="text/javascript">
		function send(){
			var content=document.getElementById('content').value;
			var pwd=document.getElementById('pwd').value;
			var username=document.getElementById('username').value;
			 $.ajax({
				type:"POST", // 也可以改成 POST
				async:false, //
				cache:false, //
				url:"send.php",
				data:{username:username,pwd:pwd,content:content},   
				success:function(msg)// msg是receive.php返回的信息
				{     // 如果提交成功可以在这进行一些后续操作  

					alert(msg);
				}   
			 }); 
		}
	</script>
</head>
<body>
		<label for="subject" >用户名:</label>
        <textarea id="username" name="username" rows="1" cols="30"></textarea>
		<br/>
        <label for="body" >密码:</label><br/>
        <textarea id="pwd" name="pwd" rows="10" cols="30"></textarea>
		<br/>
        <label for="body" >内容:</label><br/>
        <textarea id="content" name="content" rows="10" cols="30"></textarea>

		<input type="button" name="send" value="send" onClick="send()"/>
	<br/>
</body>
</html>
